package com.qtu.product_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qtu.entity.BmGoods;
import com.qtu.entity.BmSpecification;
import com.qtu.product_service.entity.ProductMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HomeMapper extends BaseMapper<BmSpecification> {
    /**
     * 查询秒杀商品
     */
    List<ProductMapper> getSecKillGoods(int mid, int count);
    /**
     * 查询推荐商品
     * @param mid
     * @param time
     * @param count
     * @return
     */
    List<ProductMapper> getNewGoods(int mid, int time, int count);
    /**
     * 商品详情查询
     * @param goodsId 商品id
     * @return
     */
    List<ProductMapper> getGoodsOne(int goodsId);
}
